<?php

// BEGIN REMOVE
set_include_path(
    dirname(__FILE__) . '/../src' . PATH_SEPARATOR .
    get_include_path()
);
// END REMOVE

function template_engine_autoload($class) {
    if (substr($class, 0, 7) != 'pear2::') {
        return;
    }
    $file = str_replace('::', '/', substr($class, 7)) . '.php';
    @include_once $file;
}

spl_autoload_register('template_engine_autoload');

